package qnb.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import weixinkeji.vip.expand.poi.JWEOffice;

/**
 * 	学生信息实体类
 * @author
 *
 */
public class Student {

  @JWEOffice(title = "学生编号",sort =1 )
  private String studentId;					//学生编号
  @JWEOffice(title = "学生名称",sort =2 )
  private String studentName;				//学生名称
  @JWEOffice(title = "学生账号",sort =3 )
  private String studentAccount;			//学生账号
  @JWEOffice(title = "学生密码",sort =4 )
  private String studentPassword;			//学生密码
  @JWEOffice(title = "学生性别",sort =5 )
  private String studentSex;				//学生性别
  @JWEOffice(title = "学生邮件",sort =6 )
  private String studentEmail;				//学生邮件
  @JWEOffice(title = "学生手机号",sort =7 )
  private String studentPhone;				//学生手机号
  @JWEOffice(title = "学生生日",sort =8 )
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date studentBirthday;	//学生生日
  @JWEOffice(title = "学生地址",sort =9 )
  private String studentAddr;				//学生地址
  @JWEOffice(title = "监护人电话",sort =10 )
  private String studentPhone2;				//监护人电话
  @JWEOffice(title = "监护人名称",sort =11 )
  private String studentName2;				//监护人名称


  @JWEOffice(title = "学生状态",sort =12 )
  private Integer studentStyleId;//用于下载excel
  private String studentStyleName;


  @JWEOffice(title = "学生班级",sort =13 )
  private Integer gradeId;//用于下载excel
  private String gradeName;


  @JWEOffice(title = "学生科目",sort =14 )
  private Integer subjectId;//用于下载excel
  private String subjectName;


  @JWEOffice(title = "学生宿舍",sort =15 )
  private Integer roomId;//用于下载excel
  private String roomName;

  @JWEOffice(title = "入学时间",sort =16 )
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date timeOfEnrollment;    //入学时间

  @JWEOffice(title = "注册的教师",sort =17 )
  private String teacherId;//用于下载excel
  private String teacherName;

  @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
  public Date getTimeOfEnrollment() {
    return timeOfEnrollment;
  }
  public void setTimeOfEnrollment(Date timeOfEnrollment) {
    this.timeOfEnrollment = timeOfEnrollment;
  }


  public Integer getStudentStyleId() {
    return studentStyleId;
  }

  public void setStudentStyleId(Integer studentStyleId) {
    this.studentStyleId = studentStyleId;
  }

  public String getStudentStyleName() {
    return studentStyleName;
  }

  public void setStudentStyleName(String studentStyleName) {
    this.studentStyleName = studentStyleName;
  }

  public Integer getGradeId() {
    return gradeId;
  }

  public void setGradeId(Integer gradeId) {
    this.gradeId = gradeId;
  }

  public String getGradeName() {
    return gradeName;
  }

  public void setGradeName(String gradeName) {
    this.gradeName = gradeName;
  }

  public Integer getSubjectId() {
    return subjectId;
  }

  public void setSubjectId(Integer subjectId) {
    this.subjectId = subjectId;
  }

  public String getSubjectName() {
    return subjectName;
  }

  public void setSubjectName(String subjectName) {
    this.subjectName = subjectName;
  }

  public Integer getRoomId() {
    return roomId;
  }

  public void setRoomId(Integer roomId) {
    this.roomId = roomId;
  }

  public String getRoomName() {
    return roomName;
  }

  public void setRoomName(String roomName) {
    this.roomName = roomName;
  }

  public String getTeacherId() {
    return teacherId;
  }

  public void setTeacherId(String teacherId) {
    this.teacherId = teacherId;
  }

  public String getTeacherName() {
    return teacherName;
  }

  public void setTeacherName(String teacherName) {
    this.teacherName = teacherName;
  }

  public String getStudentId() {
    return studentId;
  }

  public void setStudentId(String studentId) {
    this.studentId = studentId;
  }


  public String getStudentName() {
    return studentName;
  }

  public void setStudentName(String studentName) {
    this.studentName = studentName;
  }


  public String getStudentAccount() {
    return studentAccount;
  }

  public void setStudentAccount(String studentAccount) {
    this.studentAccount = studentAccount;
  }

  public String getStudentPassword() {
    return studentPassword;
  }

  public void setStudentPassword(String studentPassword) {
    this.studentPassword = studentPassword;
  }

  public String getStudentSex() {
    return studentSex;
  }

  public void setStudentSex(String studentSex) {
    this.studentSex = studentSex;
  }


  public String getStudentEmail() {
    return studentEmail;
  }

  public void setStudentEmail(String studentEmail) {
    this.studentEmail = studentEmail;
  }


  public String getStudentPhone() {
    return studentPhone;
  }

  public void setStudentPhone(String studentPhone) {
    this.studentPhone = studentPhone;
  }

  @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
  public Date getStudentBirthday() {
    return studentBirthday;
  }

  public void setStudentBirthday(Date studentBirthday) {
    this.studentBirthday = studentBirthday;
  }


  public String getStudentAddr() {
    return studentAddr;
  }

  public void setStudentAddr(String studentAddr) {
    this.studentAddr = studentAddr;
  }


  public String getStudentPhone2() {
    return studentPhone2;
  }

  public void setStudentPhone2(String studentPhone2) {
    this.studentPhone2 = studentPhone2;
  }


  public String getStudentName2() {
    return studentName2;
  }

  public void setStudentName2(String studentName2) {
    this.studentName2 = studentName2;
  }

  @Override
  public String toString() {
    return "Student{" +
            "studentId='" + studentId + '\'' +
            ", studentName='" + studentName + '\'' +
            ", studentAccount='" + studentAccount + '\'' +
            ", studentPassword='" + studentPassword + '\'' +
            ", studentSex='" + studentSex + '\'' +
            ", studentEmail='" + studentEmail + '\'' +
            ", studentPhone='" + studentPhone + '\'' +
            ", studentBirthday=" + studentBirthday +
            ", studentAddr='" + studentAddr + '\'' +
            ", studentPhone2='" + studentPhone2 + '\'' +
            ", studentName2='" + studentName2 + '\'' +
            ", studentStyleId=" + studentStyleId +
            ", studentStyleName='" + studentStyleName + '\'' +
            ", gradeId=" + gradeId +
            ", gradeName='" + gradeName + '\'' +
            ", subjectId=" + subjectId +
            ", subjectName='" + subjectName + '\'' +
            ", roomId=" + roomId +
            ", roomName='" + roomName + '\'' +
            ", timeOfEnrollment=" + timeOfEnrollment +
            ", teacherId='" + teacherId + '\'' +
            ", teacherName='" + teacherName + '\'' +
            '}';
  }
}
